package yaml

import (
	"gopkg.in/yaml.v3"
	"log"
	"os"
)

func ParsingYaml(yaml2bean any, filePath string) {
	file, err := os.ReadFile(filePath)
	if err != nil {
		log.Fatalf("读取 YAML 文件失败: %v", err)
	}
	err = yaml.Unmarshal(file, yaml2bean)
	if err != nil {
		return
	}
}
